import request from '@/utils/request'

// 查询用户订阅列表
export function listZhxSubscribe(query) {
  return request({
    url: '/ZhxAdmin/ZhxSubscribe/list',
    method: 'get',
    params: query
  })
}

// 查询用户订阅详细
export function getZhxSubscribe(subscribeId) {
  return request({
    url: '/ZhxAdmin/ZhxSubscribe/' + subscribeId,
    method: 'get'
  })
}

// 新增用户订阅
export function addZhxSubscribe(data) {
  return request({
    url: '/ZhxAdmin/ZhxSubscribe',
    method: 'post',
    data: data
  })
}

// 修改用户订阅
export function updateZhxSubscribe(data) {
  return request({
    url: '/ZhxAdmin/ZhxSubscribe',
    method: 'put',
    data: data
  })
}

// 删除用户订阅
export function delZhxSubscribe(subscribeId) {
  return request({
    url: '/ZhxAdmin/ZhxSubscribe/' + subscribeId,
    method: 'delete'
  })
}
